package cn.edu.neusoft.practice.Controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.edu.neusoft.practice.mapper.CarouselMapper;
import cn.edu.neusoft.practice.po.Carousel;

//G3王胤霖
@CrossOrigin
@Controller
public class CarouselController {
	//
	@Autowired
	private CarouselMapper CarouselMapper;
	
	@RequestMapping("/getAllCarousels")
	@ResponseBody
	public List<Carousel> getAllCarousels(){
		return CarouselMapper.selectList(null);
	}

}
